package com.agile.leetcode.order.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/9/15 10:01
 */
public class MyJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("去轮询数据库看有没有没有支付的订单拉  "+new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()));
    }
}
